Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hook which runs before every test #415

Merged
merged 9 commits into from
Aug 26, 2019
Merged

Conversation

michaelboulton
Copy link
Member

@michaelboulton michaelboulton commented Aug 17, 2019

There will be more hooks added to do more stuff in future but this one should provide at least some kind of a base to build the other ones on (see #177)

This just adds a hook which is called before every test (As according to the docstring) with the test block itself and any available variables.

Fixtures are meant for getting variables to use in the test, or to parametrize it, etc. Hooks provide more of an insight into the internals of Tavern to do things that are impossible with fixtures.

closes #113

relates to #177

@michaelboulton
Copy link
Member Author

Requires tests

@michaelboulton
Copy link
Member Author

+docs

@michaelboulton michaelboulton marked this pull request as ready for review August 24, 2019 16:25
@michaelboulton michaelboulton merged commit 137bde9 into master Aug 26, 2019
@michaelboulton michaelboulton deleted the 113-before-every-hook branch August 26, 2019 11:44
@michaelboulton michaelboulton mentioned this pull request Aug 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Plugin config through global config
1 participant